package org.osgroup.dto;

import java.util.Map;

/**
 * 心跳响应
 */
public class HeartbeatResponse {
    private Map<String, ProjectStatus> projects;
    
    public Map<String, ProjectStatus> getProjects() {
        return projects;
    }
    
    public void setProjects(Map<String, ProjectStatus> projects) {
        this.projects = projects;
    }
    
    /**
     * 项目状态
     */
    public static class ProjectStatus {
        private String status;
        private String lastHeartbeat;
        
        public String getStatus() {
            return status;
        }
        
        public void setStatus(String status) {
            this.status = status;
        }
        
        public String getLastHeartbeat() {
            return lastHeartbeat;
        }
        
        public void setLastHeartbeat(String lastHeartbeat) {
            this.lastHeartbeat = lastHeartbeat;
        }
    }
}
